export function stateToCart (state) {
    // * {
    // *    id: string, state.baseSpuId
    // *    image: string, state.image
    // *    title: string, state.name
    // *    price: number, state.pPrice
    // *    count: number, 1
    // *    check: false,
    // * }

  return {
    id: state.baseSpuId,
    image: state.image,
    title: state.name,
    price: state.pPrice,
    count: 1,
    check: false,
  }
}